<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>模板引擎 --- koa-art-template </h1>
    <hr>
    <a href="/user/add">增加</a>
    <table>
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        {{each list}}
            <tr>
                <td>{{$value.username}}</td>
                <td>{{$value.age}}</td>
                <td>{{$value.sex}}</td>
                <td>{{$value.status}}</td>
                <td><a href="/user/edit?id={{@$value._id}}">修改</a><a href="/user/delete?id={{@$value._id}}">删除</a></td>
            </tr>
        {{/each}}
    </table>
</body>
</html>